package com.ubb.damate.webservice;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.ubb.damate.model.RunTimesModel;
import com.ubb.damate.service.RunTimesServiceLocal;

@Stateless
@WebService()
public class TestWebService {
	@EJB(beanName = "RunTimesService")
	private RunTimesServiceLocal	runTimesService;

	@WebMethod(action = "runTimesGetStats", operationName = "runTimesGetStats")
	public RunTimesModel runTimesGetStats(@WebParam(name = "username") String username) {
		return runTimesService.getStats(username);
	}
}
